package com.gopay.common.domain.wallet;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.gopay.common.domain.BaseEntity;

@Entity
@Table(name = "WA_STARTUP_AD_CONF")
public class WaMobileConf extends BaseEntity{
	
	private static final long serialVersionUID = -2734787902283898595L;
	
	private Integer confId;//配置ID
	private String confName;//配置名称
	private String photoPath;//图片路径
	private Date uploadTime;//图片上传日期
	private String operator;//操作员
	private Integer isUsable;//是否生效 0:待生效 1：已生效 2：已失效
	private Integer isSkip;//是否可跳过 0：可跳过 1：不可跳过
	private String confLink;//配置链接
	private String linkName;//链接名称
	private Date availabilityTime;//生效时间
	private Date expiryTime;//失效时间
	private String confType;//配置类型  01：启动页  02：广告
	private Integer sortNum;//排序编号
	private String photoName;//图片名称
	private Date currentTime;//当前时间，仅供移动端使用
	private long imgSize;//图片大小
	
	@Id
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "WA_STARTUP_AD_CONF_SEQ")
	@SequenceGenerator(name = "WA_STARTUP_AD_CONF_SEQ", allocationSize = 1, initialValue = 1, sequenceName = "WA_STARTUP_AD_CONF_SEQ")
	@Column(name = "CONF_ID")
	public Integer getConfId() {
		return confId;
	}
	public void setConfId(Integer confId) {
		this.confId = confId;
	}
	@Column(name = "CONF_NAME")
	public String getConfName() {
		return confName;
	}
	public void setConfName(String confName) {
		this.confName = confName;
	}
	@Column(name = "PHOTO_PATH")
	public String getPhotoPath() {
		return photoPath;
	}
	public void setPhotoPath(String photoPath) {
		this.photoPath = photoPath;
	}
	@Column(name = "UPLOAD_TIME")
	public Date getUploadTime() {
		return uploadTime;
	}
	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}
	@Column(name = "OPERATOR")
	public String getOperator() {
		return operator;
	}
	public void setOperator(String operator) {
		this.operator = operator;
	}
	@Column(name = "IS_USABLE")
	public Integer getIsUsable() {
		return isUsable;
	}
	public void setIsUsable(Integer isUsable) {
		this.isUsable = isUsable;
	}
	@Column(name = "IS_SKIP")
	public Integer getIsSkip() {
		return isSkip;
	}
	public void setIsSkip(Integer isSkip) {
		this.isSkip = isSkip;
	}
	@Column(name = "CONF_LINK")
	public String getConfLink() {
		return confLink;
	}
	public void setConfLink(String confLink) {
		this.confLink = confLink;
	}
	@Column(name = "AVAILABILITY_TIME")
	public Date getAvailabilityTime() {
		return availabilityTime;
	}
	public void setAvailabilityTime(Date availabilityTime) {
		this.availabilityTime = availabilityTime;
	}
	@Column(name = "EXPIRY_TIME")
	public Date getExpiryTime() {
		return expiryTime;
	}
	public void setExpiryTime(Date expiryTime) {
		this.expiryTime = expiryTime;
	}
	@Column(name = "CONF_TYPE")
	public String getConfType() {
		return confType;
	}
	public void setConfType(String confType) {
		this.confType = confType;
	}
	@Transient
	public Integer getSortNum() {
	   return sortNum;
	}
	public void setSortNum(Integer sortNum) {
	   this.sortNum = sortNum;
	}
	
	@Column(name = "PHOTO_NAME")
	public String getPhotoName() {
		return photoName;
	}
	public void setPhotoName(String photoName) {
		this.photoName = photoName;
	}
	@Column(name="LINK_NAME")
	public String getLinkName() {
		return linkName;
	}
	public void setLinkName(String linkName) {
		this.linkName = linkName;
	}
	@Transient
	public Date getCurrentTime() {
		return currentTime;
	}
	public void setCurrentTime(Date currentTime) {
		this.currentTime = currentTime;
	}
	@Column(name = "IMG_SIZE")
	public long getImgSize() {
		return imgSize;
	}
	public void setImgSize(long imgSize) {
		this.imgSize = imgSize;
	}
	
	
}
